<div class="form-inline">
    
    <input type="text" name="nome" class="span4" placeholder="Nome do menu">
    <?php 
    include "mod/combo/vis_id.php"; 
    ?>
    <input type="submit" name="btnBuscar" value="Buscar" class="btn">
    
</div>

<br>

<table class="table table-striped table-bordered table-hover">

    <tr>
    <th width="240" height="40">A&ccedil;&otilde;es</th>
    <th>Nome</th>
    <th width="120"><a href="?pag=menu&ordem=menu.men_dropdown">Tipo de menu <i class="icon-chevron-down"></i><a></th>
    <th width="110"><a href="?pag=menu&ordem=visibilidade.vis_id">Visibilidade <i class="icon-chevron-down"></i><a></th>
    <th width="150"><a href="?pag=menu&ordem=perfil.per_id">Perfil de acesso <i class="icon-chevron-down"></i><a></th>
    <th width="70">Ordem</th>
    </tr>

    <?php
    $sql = "SELECT * FROM menu 
    INNER JOIN visibilidade ON visibilidade.vis_id=menu.vis_id
    LEFT JOIN perfil ON perfil.per_id=menu.per_id
    WHERE $onde
    ORDER BY $ordem";
    $res = sql($sql);
    $a = 0;
    while($linha = mysql_fetch_array($res)) {
    ?>

    <tr>
        <td height="40">
            <?php if ($linha['men_id'] != 2){ ?>
            <input name="excluir[]" type="checkbox" value="<?=$linha['men_id'];?>"/><i class="icon-trash"></i> Excluir&nbsp;&nbsp;|&nbsp;
            <?php } ?>
            <a href="?pag=menu_alt&men_id=<?=$linha['men_id'];?>"><i class="icon-pencil"></i> Editar</a>&nbsp;&nbsp;|&nbsp;
            <a href="?pag=item&men_id=<?=$linha['men_id'];?>"><i class="icon-tasks"></i> Itens</a>
        </td>
        <td><?=$linha['men_nome'];?></td>
        <td><?php if ($linha['men_dropdown'] == 1) { echo "Dropdown"; } else { echo "Comum"; }?></td>
        <td><?=$linha['vis_nome'];?></td>
        <td><?=$linha['per_nome'];?></td>
        <td>
            <?php 
            $estilo = "style='width:70px;'";
            include "mod/combo/men_ordem.php"; 
            ?>
        </td>
    </tr>

    <?
        $a++;
    } 
    ?>
</table>